package Tests;

import org.jrabbit.base.sound.Music;
import org.jrabbit.standard.game.main.Profiler;
import org.jrabbit.standard.game.main.StandardGame;
import org.jrabbit.standard.game.objects.Sprite;

import Code.Basic.World.GameWorld;
import Code.Objects.Characters.Player.Player;
import Code.Objects.Structures.Pod.Pod;

public class DeadSteelTest1 extends StandardGame
{
	public DeadSteelTest1()
	{
		super("Dead Steel", "Resources/Images/General/Icon.png");
	}
	
	protected void setup()
	{
		profiler.color().setAlpha(1f);
		profiler.createNewTracker("Physics");
		profiler.hide(Profiler.CAMERA);
		profiler.hide(Profiler.JVM);
		profiler.hide(Profiler.RESOURCES);
		profiler.hide(Profiler.WORLD);
		
		GameWorld gW = new GameWorld();
		gW.addRenderable(new Sprite("Resources/Images/Objects/Pod/Pod Base.png"), "Decor");
		gW.addObstacle(new Pod(), "Structures");
		gW.addPlayer(new Player());
		gW.getPlayer().setLocation(500, 500);
		gW.makeCurrent();
		gW.initialize();
		Music.loop("Resources/Sounds/Music/Again We Stand.ogg");
	}
	
	public static void main(String[] args)
	{
		init();
		new DeadSteelTest1().run();
	}
}